﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Evaluate_CommentEdit.aspx.cs"
    Inherits="V5_EShop._Template.Default.Member.Evaluate_CommentEdit" %>

<%@ Register Src="Controls/menu.ascx" TagName="menu" TagPrefix="mm" %>
<%@ Register Src="Controls/header.ascx" TagName="header" TagPrefix="mm" %>
<%@ Register Src="Controls/footer.ascx" TagName="footer" TagPrefix="mm" %>
<%@ Register Src="Controls/usermenu.ascx" TagName="usermenu" TagPrefix="mm" %>
<%@ Register Src="Controls/verlogin.ascx" TagName="verlogin" TagPrefix="mm" %>
<mm:verlogin ID="verlogin2" runat="server" />
<%--验证用户登录--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
        <%=config.SiteTitle %>-商品品论</title>
    <link href="/_template/<%=config.TemplatePath%>/css/OneEvaluate.css" rel="stylesheet"
        type="text/css" />
    <link href="/_template/<%=config.TemplatePath%>/css/init.css" rel="stylesheet" type="text/css">
    <link href="/_template/<%=config.TemplatePath %>/css/head.css" rel="stylesheet" type="text/css">

    <script type="text/javascript" src="/scripts/jquery_min.js"></script>

    <script src="/jsfiles/js/gd.js" type="text/javascript"></script>

    <script language="javascript">
        function tab_Change(currentnum, tab, content, fleet, deep, sum) {
            for (var i = 1; i <= sum; i++) { document.getElementById(content + i).style.display = "none"; }
            for (var i = 1; i <= sum; i++) { document.getElementById(tab + i).className = fleet; }
            document.getElementById(tab + currentnum).className = deep;
            document.getElementById(content + currentnum).style.display = "block";
        }
    </script>

</head>
<body>
    <div id="page">
        <mm:header ID="header1" runat="server" />
        <div class="clear">
        </div>
        <div class="banner">
            <img height="72" src="/_template/<%=config.TemplatePath%>/images/Default/guanggao.gif"
                width="950"></div>
        <span style="display: block; margin: 8px 0;">首页 &gt;&gt; 会员后台</span>
        <div class="left">
            <mm:usermenu ID="usermenu1" runat="server" />
            <div class="zuo_xia">
                <div>
                    <img src="/_template/<%=config.TemplatePath%>/images/Default/top.gif" width="195"></div>
                <div class="yhxx">
                    <mm:menu ID="menu1" runat="server" />
                </div>
                <img height="30" src="/_template/<%=config.TemplatePath%>/images/Default/bg_03.gif"
                    width="195"></div>
        </div>
        <form id="form1" runat="server">
        <div class="right">
            <div class="Content">
                <h2 class="sydd">
                    请您对已购买的商品做出评价
                    <ul class="ul_pj">
                        <li><span class="span_01">商品综合评价：</span> <span>好评：
                            <asp:RadioButton ID="rbtn1_1" runat="server" GroupName="comment1" Checked="true" />
                            <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/lmg.gif" width="30"
                                height="30"></span> <span>中评：
                                    <asp:RadioButton ID="rbtn1_2" runat="server" GroupName="comment1" />
                                    <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/zhong.gif" width="30"
                                        height="30"></span><span>差评：
                                            <asp:RadioButton ID="rbtn1_3" runat="server" GroupName="comment1" />
                                            <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/cha.gif" width="30"
                                                height="30"></span> </li>
                        <li><span class="span_01">商品外观评价：</span> <span>好评：
                            <asp:RadioButton ID="rbtn2_1" runat="server" GroupName="comment2" Checked="true" />
                            <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/lmg.gif" width="30"
                                height="30"></span> <span>中评：
                                    <asp:RadioButton ID="rbtn2_2" runat="server" GroupName="comment2" />
                                    <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/zhong.gif" width="30"
                                        height="30"></span><span>差评：
                                            <asp:RadioButton ID="rbtn2_3" runat="server" GroupName="comment2" />
                                            <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/cha.gif" width="30"
                                                height="30"></span> </li>
                        <li><span class="span_01">商品舒适评价：</span> <span>好评：
                            <asp:RadioButton ID="rbtn3_1" runat="server" GroupName="comment3" Checked="true" />
                            <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/lmg.gif" width="30"
                                height="30"></span> <span>中评：
                                    <asp:RadioButton ID="rbtn3_2" runat="server" GroupName="comment3" />
                                    <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/zhong.gif" width="30"
                                        height="30"></span><span>差评：
                                            <asp:RadioButton ID="rbtn3_3" runat="server" GroupName="comment3" />
                                            <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/cha.gif" width="30"
                                                height="30"></span> </li>
                        <li><span class="span_01">商品尺码评价：</span> <span>合适：
                            <asp:RadioButton ID="rbtn4_1" runat="server" GroupName="comment4" Checked="true" />
                            <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/lmg.gif" width="30"
                                height="30"></span> <span>偏大：
                                    <asp:RadioButton ID="rbtn4_2" runat="server" GroupName="comment4" />
                                    <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/zhong.gif" width="30"
                                        height="30"></span><span>偏小：
                                            <asp:RadioButton ID="rbtn4_3" runat="server" GroupName="comment4" />
                                            <img src="/_template/<%=config.TemplatePath%>/images/OneEvaluate/cha.gif" width="30"
                                                height="30"></span> </li>
                    </ul>
                    <table width="600" border="0" cellspacing="0" cellpadding="0" class="table_01">
                        <tr>
                            <td>
                                评论的商品名称：
                            </td>
                            <td>
                                <asp:Label ID="lblProductName" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                请输入标题：
                            </td>
                            <td>
                                <asp:TextBox ID="txtCommentTitle" runat="server" CssClass="textfield_01" Style="float: left;"></asp:TextBox><div
                                    id="key1" style="float: left;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                请输入内容：
                            </td>
                            <td>
                                <asp:TextBox ID="txtCommentContent" runat="server" CssClass="textarea_01"></asp:TextBox><div
                                    id="key2">
                                </div>
                            </td>
                        </tr>
                    </table>
                    <asp:HiddenField ID="hfProductID" runat="server" />
                    <asp:Button ID="btnSave" runat="server" Text="" CssClass="button_01" />
            </div>
        </div>
        </form>
        <div class="clear">
        </div>
        <mm:footer ID="footer2" runat="server" />
        <div class="clear">
        </div>
    </div>

    <script type="text/javascript">
        $(function() {
            $("#btnSave").click(function() {
                return check_answer_form();
            });
            $("#txtCommentTitle").keyup(function() {
                var s = $("#txtCommentTitle").val();
                var nowlength = s.length;
                if ((50 - nowlength) < 0) {
                    s = s.substring(0, 50);
                    $("#txtCommentTitle").val(s)
                    return;
                }
                $("#key1").html("已输入" + nowlength + "字，还可以输入" + (50 - nowlength) + "字");
            });
            $("#txtCommentContent").keyup(function() {
                var s = $("#txtCommentContent").val();
                var nowlength = s.length;
                if ((250 - nowlength) < 0) {
                    s = s.substring(0, 250);
                    $("#txtCommentContent").val(s)
                    return;
                }
                $("#key2").html("已输入" + nowlength + "字，还可以输入" + (250 - nowlength) + "字");
            });
        });
        function check_answer_form() {
            var s1 = $("#txtCommentTitle");
            var s2 = $("#txtCommentContent");
            if (s1.val() == "") {
                alert("请输入标题");
                return false;
            }
            if (s2.val() == "") {
                alert("请输入内容");
                return false;
            }
            return true;
            //return true;
        }
    </script>

</body>
</html>
